﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CA5 RID: 3237
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class OJNAHKPKPCD : IMessage<OJNAHKPKPCD>, IMessage, IEquatable<OJNAHKPKPCD>, IDeepCloneable<OJNAHKPKPCD>, IBufferMessage
	{
		// Token: 0x170028B1 RID: 10417
		// (get) Token: 0x0600907A RID: 36986 RVA: 0x0017F8FC File Offset: 0x0017DAFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<OJNAHKPKPCD> Parser
		{
			get
			{
				return OJNAHKPKPCD._parser;
			}
		}

		// Token: 0x170028B2 RID: 10418
		// (get) Token: 0x0600907B RID: 36987 RVA: 0x0017F903 File Offset: 0x0017DB03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return OJNAHKPKPCDReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170028B3 RID: 10419
		// (get) Token: 0x0600907C RID: 36988 RVA: 0x0017F915 File Offset: 0x0017DB15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return OJNAHKPKPCD.Descriptor;
			}
		}

		// Token: 0x0600907D RID: 36989 RVA: 0x0017F91C File Offset: 0x0017DB1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OJNAHKPKPCD()
		{
		}

		// Token: 0x0600907E RID: 36990 RVA: 0x0017F924 File Offset: 0x0017DB24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OJNAHKPKPCD(OJNAHKPKPCD other) : this()
		{
			this.areaId_ = other.areaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600907F RID: 36991 RVA: 0x0017F949 File Offset: 0x0017DB49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OJNAHKPKPCD Clone()
		{
			return new OJNAHKPKPCD(this);
		}

		// Token: 0x170028B4 RID: 10420
		// (get) Token: 0x06009080 RID: 36992 RVA: 0x0017F951 File Offset: 0x0017DB51
		// (set) Token: 0x06009081 RID: 36993 RVA: 0x0017F959 File Offset: 0x0017DB59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x06009082 RID: 36994 RVA: 0x0017F962 File Offset: 0x0017DB62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as OJNAHKPKPCD);
		}

		// Token: 0x06009083 RID: 36995 RVA: 0x0017F970 File Offset: 0x0017DB70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(OJNAHKPKPCD other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009084 RID: 36996 RVA: 0x0017F9A0 File Offset: 0x0017DBA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009085 RID: 36997 RVA: 0x0017F9DF File Offset: 0x0017DBDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009086 RID: 36998 RVA: 0x0017F9E7 File Offset: 0x0017DBE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009087 RID: 36999 RVA: 0x0017F9F0 File Offset: 0x0017DBF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009088 RID: 37000 RVA: 0x0017FA24 File Offset: 0x0017DC24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009089 RID: 37001 RVA: 0x0017FA62 File Offset: 0x0017DC62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(OJNAHKPKPCD other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600908A RID: 37002 RVA: 0x0017FA93 File Offset: 0x0017DC93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600908B RID: 37003 RVA: 0x0017FA9C File Offset: 0x0017DC9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AreaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400371C RID: 14108
		private static readonly MessageParser<OJNAHKPKPCD> _parser = new MessageParser<OJNAHKPKPCD>(() => new OJNAHKPKPCD());

		// Token: 0x0400371D RID: 14109
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400371E RID: 14110
		public const int AreaIdFieldNumber = 8;

		// Token: 0x0400371F RID: 14111
		private uint areaId_;
	}
}
